﻿using System.ComponentModel.Composition;
using RK.Common.GraphicsEngine.Objects;
using RK.WpfModelViewer.Infrastructure;

namespace RK.WpfModelViewer.Modules.ACImporter
{
    [Export(typeof(IModelImporter))]
    public class ACModelImporter : IModelImporter
    {
        /// <summary>
        /// Imports the type of the object.
        /// </summary>
        /// <param name="filePath">The file path.</param>
        /// <returns></returns>
        public ObjectType ImportObjectType(string filePath)
        {
            return ObjectType.FromACFile(filePath);
        }

        /// <summary>
        /// Gets the get file dialog filter.
        /// </summary>
        public string GetFileDialogFilter
        {
            get { return "AC3D Files (*.ac)|*.ac"; }
        }
    }
}